Skip to content

Remove package.json and deno.lock from Deno template #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

markmals
Copy link
Contributor

No description provided.

@markmals
Copy link
Contributor Author

Depends on remix-run/react-router#13744

@johnstonmatt
Copy link

this probably solves #132

@markmals
Copy link
Contributor Author

It will! Just waiting for an official release with the fix in order to open this PR.

@markmals markmals marked this pull request as ready for review June 27, 2025 19:59
@markmals
Copy link
Contributor Author

@brookslybrand I think this is ready to be merged now

@brookslybrand
Copy link
Contributor

Looks like the CLI also looks for a package.json 🙃

▲  Oh no! The provided template must be a React Router project with a `package.json` file, but that file does not exist in my-react-router-app.

@markmals markmals marked this pull request as draft July 2, 2025 16:24
@markmals
Copy link
Contributor Author

markmals commented Jul 2, 2025

@brookslybrand so, this one is trickier… create-react-router actually reads the package.json to verify that the template contains React Router packages:

    for (let dependency in dependencies) {
      let version = dependencies[dependency];
      if (
        (dependency.startsWith("@react-router/") ||
          dependency === "react-router" ||
          dependency === "react-router-dom") &&
        version === "*"
      ) {
        dependencies[dependency] = semver.prerelease(ctx.reactRouterVersion)
          ? // Templates created from prereleases should pin to a specific version
            ctx.reactRouterVersion
          : "^" + ctx.reactRouterVersion;
      }
    }

Should I add support for checking deno.json(c) as well or remove these checks altogether?

@brookslybrand
Copy link
Contributor

@markmals I think this PR might fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants